<!DOCTYPE html>
<html>
<head>
    <title>意见反馈列表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="overflow-x:auto">
                <table style="border-collapse:separate; border-spacing: 10px;">
                    <tr>
                        <td class="col-sm-3">
                            <span class="col-sm-2 control-label">用户ID</span>
                            <input type="text" name="qInput" class="form-control col-sm-10" v-model="q.userId"
                                   @keyup.enter="query" placeholder="用户ID">
                        </td>
                        <td class="col-sm-3">
                            <span class="col-sm-2 control-label">用户昵称</span>
                            <input type="text" name="qInput" class="form-control col-sm-10" v-model="q.nickName"
                                   @keyup.enter="query" placeholder="用户昵称">
                        </td>
                        <!--<td class="col-sm-3">
                            <span class="col-sm-2 control-label" >更新时间</span>
                            <input type="text" name="qInput" style="width:31%" class="form-control col-sm-4" id="replayTime" v-model="q.replayTime" @keyup.enter="query" placeholder="开始时间">
                            <label class="col-sm-1 control-label">—</label>
                            <input type="text" name="qInput" style="width:31%"  class="form-control col-sm-3" v-model="q.replayTime1" @keyup.enter="query" placeholder="结束时间">
                        </td>-->
                    </tr>
                    <tr>

                        <td class="col-sm-3">
                            <a class="btn btn-default" @click="query">查询</a>
                            <a class="btn btn-default" @click="reset">重置</a>
                            <a class="btn btn-default" @click="exportExcel">导出</a>
                            <#if shiro.hasPermission("sys:feedback:update")>
                            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;回复</a>
                        </#if>
                        </td>
                    </tr>

                </table>

            </div>
            <!--			<div style="margin-top: 10px">-->
            <!--				<#if shiro.hasPermission("sys:feedback:update")>-->
            <!--				<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;回复</a>-->
            <!--			</#if>-->
            <!--</div>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">用户ID</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control" v-model="feedback.userId"
                           placeholder="用户ID"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">反馈时间</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control" v-model="feedback.feedbackTime"
                           placeholder="反馈时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">类型</div>
                <div class="col-sm-10">
                    <select  v-model="feedback.type">
                        <option value="1">投诉</option>
                        <option value="2">意见</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">反馈内容</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control" v-model="feedback.content"
                           placeholder="反馈内容"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">回复内容</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="feedback.reply" placeholder="回复内容"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/feedback.js?_${.now?long}"></script>
</body>
</html>